<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<form rel="pagerForm" id="searchForm" onsubmit="return navTabSearch(this);" action="activity/activityPager.do?ACTION=${ACTION}&TODO=${TODO}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						活动名称:
						<input size="10" type="text" name="map.activityName_L" value="${pager.scMap.activityName_L}">
						承办方:
						<input size="10" type="text" name="map.dwName_L" value="${pager.scMap.dwName_L}">
						所属区域:
						<select name="map.areaId">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('AREA')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.areaId==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
						</select>
						活动类型:
				    	<select name="map.activityType">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('ACTIVITY_TYPE')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.activityType==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
						专管员:
				    	<select name="map.adminUserId_I">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('ZdzxEmp')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.adminUserId_I==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
						活动标签:
						<input size="10" type="text" name="map.activityTag_L" value="${pager.scMap.activityTag_L}">
						导师团队:
						<input size="10" type="text" name="map.dsEmpNames_L" value="${pager.scMap.dsEmpNames_L}">
						
					<c:if test="${TODO!='EDIT'}">
						审核状态:
				    	<select name="map.approveStatus">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('APPROVE_STATUS')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.approveStatus==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
			    	</c:if>
					<c:if test="${TODO=='EDIT'}">
			    	</c:if>
						进行状态:
				    	<select name="map.processStatus">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('PROCESS_STATUS')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.processStatus==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
		      		</td>
				</tr>
			</table>
		 		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<ul class="toolBar">
		<li><a class="icon" href='javascript:exportExcel($("#searchForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))' title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="105" orderField="activityName" <c:if test='${pager.orderField=="activityName"}'>class="${param.orderDirection}"</c:if>>活动名称</th>
				<th width="105" orderField="dwName" <c:if test='${pager.orderField=="dwName"}'>class="${param.orderDirection}"</c:if>>承办方</th>
				
				<th width="105" orderField="beginTime" <c:if test='${pager.orderField=="beginTime"}'>class="${param.orderDirection}"</c:if>>开始时间</th>
				<th width="105" orderField="endTime" <c:if test='${pager.orderField=="endTime"}'>class="${param.orderDirection}"</c:if>>结束时间</th>
				<th width="65">活动类型</th>
				<th width="65">所属区域</th>
				<th width="105" orderField="address" <c:if test='${pager.orderField=="address"}'>class="${param.orderDirection}"</c:if>>地址</th>
				<th width="105" orderField="activityTag" <c:if test='${pager.orderField=="activityTag"}'>class="${param.orderDirection}"</c:if>>活动标签</th>
				<th orderField="dsEmpNames" <c:if test='${pager.orderField=="dsEmpNames"}'>class="${param.orderDirection}"</c:if>>导师团队</th>
				<th orderField="guestNames" <c:if test='${pager.orderField=="guestNames"}'>class="${param.orderDirection}"</c:if>>自邀嘉宾</th>
				
				
				<th orderField="remark" <c:if test='${pager.orderField=="remark"}'>class="${param.orderDirection}"</c:if>>备注</th>
				<th width="45">专管员A</th>
				<th width="45">专管员B</th>
				<th width="45">申请人</th>
				<th width="65">审核状态</th>
				<th width="65">进行状态</th>
				<th width="95">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_${entity }" rel="${item.id}">
					<td align="right">${varStatus.count}</td>	
					<td><a target="navTab" href="activity/toActivityEditor/${item.id}.do?todo=view&funId=${funId}" rel="cyzjEditor">${item.activityName}</a></td>
					
					<td>${item.dwName}</td>
					
					<td>${item.beginTime}</td>
					<td>${item.endTime}</td>
					<td>${Dict.getAlias('ACTIVITY_TYPE', item.activityType)}</td>
					<td>${Dict.getAlias('AREA', item.areaId)}</td>
					<td>${item.address}</td>
					<td><a title="${item.activityTag}">${item.activityTag}</a></td>
					<td><a title="${item.dsEmpNames}">${item.dsEmpNames}</a></td>	
					<td><a title="${item.guestNames}">${item.guestNames}</a></td>	
					
					<td>${item.remark}</td>
					<td>${Dict.getAlias('USER',item.adminUserId)}</td>	
					<td>${Dict.getAlias('USER',item.adminUserId2)}</td>	
					<td>${Dict.getAlias("USER",item.createById)}</td>	
					<td>
						<a title="审核日志" width="1200" hight="800" target="dialog" href="common/approveLogPager.do?entityType=Activity&entityId=${item.id}" rel="approveLogPagerDialog">${Dict.getAlias('APPROVE_STATUS',item.approveStatus)}</a>
						<!-- ${Dict.getAlias('APPROVE_STATUS',item.approveStatus)} -->
					</td>
					<td>${Dict.getAlias('PROCESS_STATUS',item.processStatus)}</td>
					<td>
					<c:if test="${TODO=='EDIT' || TODO=='UPDATE'}">
					    <a title="编辑活动" target="navTab" href="activity/toActivityEditor/${item.id}.do?ACTION=MODIFY&TODO=${TODO}&funId=${funId}" rel="cyzjEditor">编辑</a>&nbsp;&nbsp;
				    </c:if>
				    <c:if test="${TODO=='APPROVE'}">
						<a title="审核活动" target="navTab" href="activity/toActivityEditor/${item.id}.do?TODO=${TODO}&funId=${funId}" rel="cyzjEditor">审核</a>&nbsp;&nbsp;
				    </c:if>
				    <c:if test="${TODO=='fieldCtrl'}">
						<a title="活动现场管理" target="navTab" href="activity/toActivityEditor/${item.id}.do?TODO=${TODO}&funId=${funId}" rel="cyzjEditor">现场管理</a>&nbsp;&nbsp;
				    </c:if>
				    <c:if test="${TODO=='fileMgr'}">
						<a title="活动档案管理" target="navTab" href="activity/toActivityEditor/${item.id}.do?TODO=${TODO}&funId=${funId}" rel="cyzjEditor">档案管理</a>&nbsp;&nbsp;
				    </c:if>
				    <c:if test="${TODO=='evaluateMgr'}">
						<a title="活动评价" target="navTab" href="activity/toActivityEditor/${item.id}.do?TODO=${TODO}&funId=${funId}" rel="cyzjEditor">活动评价</a>&nbsp;&nbsp;
				    </c:if>
						<a title="活动预览" target="_blank" href="m/activityDetail.do?id=${item.id}" >预览</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />